<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/checkAll.js"></script>
  	<style>
		/*下面可以自己修改*/
    .result-tab th,
    .result-tab td{
      text-align:center;
    }
    </style>
</head>
<body>
<!--页面顶部导航模块-->
{include file="public/top" /}

<div class="container clearfix">
	<!--页面左侧导航模块-->
	{include file="public/left" /}

    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:url('Index/index')}">后台</a><span class="crumb-step">&gt;</span><span class="crumb-name">用户管理</span></div>
        </div>
    <!--<div class="search-wrap">
            <div class="search-content">
                <form action="/js__PUBLIC__/static/admin/css/admin/design/index" method="post">
                    <table class="search-tab">
                        <tr>
                            <th>选择分类:</th>
                            <td>
                                <select name="search-sort" id="">
                                    <option value="">全部</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>-->
        <div class="result-wrap">
            <form name="myform" id="myform" method="post" action="batch_delete">
                <div class="result-title">
                    <div class="result-list">
                        <a href="{:url('user/insert')}"><i class="icon-font"></i>新增用户</a>
                        <a id="batchDel" href="javascript:void(0)" onclick="document:myform.submit();"><i class="icon-font"></i>批量删除</a>
                        <!--<a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>-->
                    </div>
                </div>
                <div class="result-content">
                    

                      <table class="result-tab" id="user_list" width="100%">
                          <tr>
                              <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox" onclick="checkAll(this, 'user_list', 'user_item');"></th>
                              <!--<th>排序</th>-->
                              <th width="3%">ID</th>
                              <th width="8%">用户名</th>
                              <th width="8%">类型</th>
                              <th width="8%">姓名</th>
                              <th width="8%">激活</th>
                              <th width="12%">创建时间</th>
                              <th width="12%">更新时间</th>
                              <th width="10%">操作</th>
                          </tr>
                          {volist name="users" id="data"  empty="暂时没有数据"}
                          <tr>
                              <td class="tc"><input class="user_item" name="id[]" value="59" type="checkbox"></td>
                              <!--<td>
                                  <input name="ids[]" value="59" type="hidden">
                                  <input class="common-input sort-input" name="ord[]" value="0" type="text">
                              </td>-->
                              <td>{$data.user_id}</td>
                              <td title={$data.user_name}>{$data.user_name}</td>
                              <td title={$data.user_type}>
                                {switch name="$data.user_type"}
                                  {case value="0"}普通用户{/case}
                                  {case value="1"}管理员{/case}
                                  {default /}default
                                {/switch}
                              </td>
                              <td title={$data.current_user}>{$data.current_user}</td>
                              <td title={$data.active_status}>
                                {switch name="$data.active_status"}
                                  {case value="0"}<font color="red">×</font>{/case}
                                  {case value="1"}<font color="green">√</font>{/case}
                                  {default /}default
                                {/switch}
                              </td>
                              <td title={$data.create_time}>{$data.create_time}</td>
                              <td title={$data.update_time}>{$data.update_time}</td>
                              <td>
                                  <a class="link-update" href="{:url('edit',array('id'=>$data.user_id))}">修改</a>
                                  {if condition="'1' neq $data.user_type"}
                                    <a class="link-del" href="{:url('delete',array('id'=>$data.user_id))}" onclick ="return confirm('确定删除该用户?')" >删除</a>
                                  {/if}
                              </td>
                          </tr>
                          {/volist}
                      </table>
                <!--<div class="list-page"> 2 条 1/1 页</div>-->
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>